package com.ruoyi.md.service.impl;

import com.ruoyi.md.domain.MdUnitMeasure;
import com.ruoyi.md.mapper.MdUnitMeasureMapper;
import com.ruoyi.md.service.IMdUnitMeasureService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Collections;
import java.util.List;
@Service
public class MdUnitMeasureServiceImpl implements IMdUnitMeasureService {
    @Autowired
    private MdUnitMeasureMapper mdUnitMeasureMapper;
    @Override
    public MdUnitMeasure selectMdUnitMeasureByMeasureId(Long measureId) {
        return mdUnitMeasureMapper.selectMdUnitMeasureByMeasureId(measureId);
    }

    @Override
    public List<MdUnitMeasure> selectMdUnitMeasureList(MdUnitMeasure mdUnitMeasure) {
        return mdUnitMeasureMapper.selectMdUnitMeasureList(mdUnitMeasure);
    }

    @Override
    public int insertMdUnitMeasure(MdUnitMeasure mdUnitMeasure) {
        return mdUnitMeasureMapper.insertMdUnitMeasure(mdUnitMeasure);
    }

    @Override
    public int updateMdUnitMeasure(MdUnitMeasure mdUnitMeasure) {
        return mdUnitMeasureMapper.updateMdUnitMeasure(mdUnitMeasure);
    }

    @Override
    public int deleteMdUnitMeasureByMeasureId(Long measureId) {
        return mdUnitMeasureMapper.deleteMdUnitMeasureByMeasureId(measureId);
    }

    @Override
    public int deleteMdUnitMeasureByMeasureIds(Long[] measureIds) {
        return mdUnitMeasureMapper.deleteMdUnitMeasureByMeasureIds(measureIds);
    }

    @Override
    public List<MdUnitMeasure> selectPrimaryMeasures() {
        return mdUnitMeasureMapper.selectPrimaryMeasures();
    }
}
